package com.flc.gateway.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * 通信协议-Protocol
 *
 * @author haizi
 * @date 2018-01-04
 */
public class Protocol {

    /**  协议名 -生成数据模型名  */
    private String pojoName;
    /**  协议内容  */
    private List<Field> fields = new ArrayList<>();
    /**  注释  */
    private String comments;

    public void setPojoName(String pojoName) {
        this.pojoName = pojoName;
    }

    public String getPojoName() {
        return pojoName;
    }

    public void setFields(List<Field> fields) {
        this.fields = fields;
    }

    public List<Field> getFields() {
        return fields;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        return "Protocol {" +
                "pojoName='" + pojoName + '\'' +
                ", fields=" + fields +
                ", comments='" + comments + '\'' +
                '}';
    }
}